 #include <iostream>
#include"Date.h"
#include<ctime>
using namespace std;

int main()
{
//
    time_t nowtime;
    time(&nowtime);
    struct tm local;
    localtime_s(&local,&nowtime);
    int year=local.tm_year+1900;
    int month=local.tm_mon+1;
    int day=local.tm_mday;
//
Date datel(year,month,day);
datel.show();
char * p=datel.toString();
cout<<p<<endl;
Date date2(p);
date2.show();
cout<<"10ÌìÇ°:";
Date date3=date2.subDays(10);
date3.show();
cout<<"10Ììºó:";

    return 0;
}
